<?php
namespace Home\Controller;
use Think\ControllerEx;
class CommonController extends ControllerEx {
    
    Public function _initialize()
    {	
    	$this->base_init(null);
    	
 		//如果 role 为前台调回前台登录
        if (!session('?home') && !session('?admin')) {
            $this->redirect('/Home/Login/index');
        }
        
    }
}